<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- 注释... -->
    hello
    <ul id="list">
        <li>0</li>
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
    </ul>
    <script>
        /*
        标签节点
        文本节点
        注释节点
        */

        const nodes = document.body.childNodes;

        console.log(nodes);

        console.log(nodes[1].nodeType) // comment
        console.log(nodes[2].nodeType) // text
        console.log(nodes[3].nodeType) // tag
        console.log(document.nodeType) // document

        if (nodes[1].nodeType === 1) {

        }
    </script>
</body>

</html>